class User < ActiveRecord::Base

  belongs_to :group
  belongs_to :branch
  has_many :agreements
  
  validates_presence_of :group_id , :branch_id

  acts_as_authentic do |c|
    c.logged_in_timeout = 60.minutes
  end
  
  attr_accessor :user_log
  def to_audit
    return login
  end
  

end
